home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Utilities / macam.0.8.4.dmg / macam sources / texts / packaging.txt < prev    next >
Encoding:
Text File  |  2003-01-30  |  1.8 KB  |  32 lines

  1. How to pack a macam distribution
  2.  
  3. Matthias Krauss, 2.9.2002
  4.  
  5. It is not necessary to build a distribution this way and I don't want to force anyone to use this method, but I think it is a good way. In earlier times, macam distributions were tgz-ed folders. This way, it was not easily possible to add a custom folder layout and a background image. With disk images, it is. Another way would be to create a pkg or mpkg file which is handled by Apple's installer. But even Apple depreciates this method if the installation steps are easy enough to do a drag-and-drop installation (well, this is what they say, but many of their apps come in a pkg). This is also the reason why other installer systems are no option either (WISE isn't wise...)
  6.  
  7. Besides, this is probably not the best solution. I've tried to to many things in the shell - hoping that one day I know how to do everything in the shell in order to build a script that does all the stuff automatically. But I haven't found shell commands for two tasks: a) Positioning the files in the window and b) setting the folder window characteristics and background image.
  8.  
  9. Here are the steps I currently do:
  10.  
  11. > cd ~/Desktop
  12. > hdiutil create macamtemp.dmg -size 6m -volname macam -fs HFS+
  13. > hdiutil attach macamtemp.dmg
  14. > cd /Volumes/macam
  15. > mkdir background
  16. > cp (background image) ./background/(bg image name)
  17.  
  18. (Go into finder, set background image to image)
  19.  
  20. > /Developer/Tools/SetFile -a V background
  21.  
  22. (Copy and arranage stuff in the window)
  23.  
  24. > df
  25. (find macam volume: /dev/... )
  26. > hdiutil detach (/dev/...)
  27. > cd ~/Desktop
  28. > hdiutil convert macamtemp.dmg -format UDZO -o macam.dmg
  29. > rm macamtemp.dmg
  30.  
  31. Done! I don't know if it make sense to wrap this dmg file in MacBinary (or something else). Many people make the dmg available for download directly (including, for example, OmniGroup). Apple  still wraps it in a .dmg.bin. Why do they?
  32.